diff options
Diffstat (limited to 'files/pkgconf_host/bin/%[_target]-pkg-config')
-rw-r--r-- | files/pkgconf_host/bin/%[_target]-pkg-config | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/pkgconf_host/bin/%[_target]-pkg-config b/files/pkgconf_host/bin/%[_target]-pkg-config new file mode 100644 index 00000000..7351e62f --- /dev/null +++ b/files/pkgconf_host/bin/%[_target]-pkg-config @@ -0,0 +1,8 @@ +#!/bin/sh +PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}.."; +if [ "${#}" -eq 1 ]\ +&& [ "x${1}" = "x--version" ]; then + "${PREFIX}/bin/pkgconf" --version; +else + "${PREFIX}/bin/pkgconf" --define-variable=prefix="${PREFIX%/}/native" --keep-system-cflags "${@}"; +fi; |